<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航测试</title>
    <style>
        #nav {
            font-size: 0;

            margin: 100px 200px;
        }

        #nav a {
            display: inline-block;
            width: 80px;
            height: 30px;
            font-size: 14px;
            text-align: center;
            line-height: 30px;
            text-decoration: none;
            border-bottom: 1px solid #ccc;
            color: black;
        }

        #nav a:visited {
            color: black;
        }
        #nav a:hover{
            font-weight: bolder;
            background-color: #eee;
            border-bottom: 2px solid orange;
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div id="nav">
        <a href="#">链接1</a>
        <a href="#">链接2</a>
        <a href="#">链接3</a>
    </div>
</body>

</html>